import Vue from 'vue'

import Cookies from 'js-cookie'

import Element from 'element-ui'
import './assets/styles/element-variables.scss'

import '@/assets/styles/index.scss' // global css
import '@/assets/styles/ruoyi.scss' // ruoyi css
import App from './App'
import store from './store'
import router from './router'
import dataV from '@jiaminghi/data-view'
import { parseTime } from "@/utils/ruoyi";
// 分页组件
import Pagination from "@/components/Pagination";
import i18n from './i18n'; // 引入国际化配置

Vue.component('Pagination', Pagination)
Vue.prototype.parseTime = parseTime
Vue.use(dataV)
Vue.use(Element, {
  size: Cookies.get('size') || 'medium' // set element-ui default size
})
// Vue.prototype.$bus = new Vue()
Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  i18n,
  render: h => h(App)
})
